<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .textColor{
            color: red;
        }
        .textSize{
            font-size: 20px;
        }
    </style>
</head>
<body>
    <div id="app">
        <!-- <img v-bind:src="imageSrc"/> -->
        <img :src="imageSrc"/>
        <div :class="[classA,classB]">又摆乱一天</div>
        <div :class="[isA?classA:classB]">摆乱一时爽，天天摆乱，天天爽</div>
        <div :class="{textColor:isA}">摆乱一时爽，以后就不爽了</div>
    </div>
</body>
</html>
<script src="js/vue.min.js"></script>
<script>
    var app=new Vue({
        el:"#app",
        data:{
            imageSrc:"images/1.jpg",
            classA:"textColor",
            classB:"textSize",
            isA:true
        }
    });
</script>